package com.wardrobe.mapper.slave.goods;

import com.wardrobe.domain.goods.GoodsFromBean;
import com.wardrobe.domain.goods.GoodsShowBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2018/11/16.
 */
@Component("goodsSlaveMapper")
public interface GoodsSlaveMapper {

    List<GoodsShowBean> selectGoodsList(GoodsFromBean fromBean);

    long countGoods(GoodsFromBean fromBean);

    GoodsShowBean selectGoodsById(long id);

    List<GoodsShowBean> selectApiGoodsList();

    List<GoodsShowBean> selectGoodsListByShopId(long shopId);

    List<GoodsShowBean> getSearchGoodsList(@Param("goodName") String goodName);
}
